from page.net_project_tools.net_act_page import NetActPage
import user_data
import unittest
from create_data.create_test_data import *
import warnings


class XinAcTest(unittest.TestCase):

    def setUp(self):
        warnings.simplefilter('ignore', ResourceWarning)
        dr = Xin_and_login(user_data.Xinxi_project_admin)
        release_act(dr)
        dr.quit()
    def tearDown(self):
        self.page.logout()


    def test_net_act(self):
        """活动工具"""
        self.page = NetActPage()
        self.page.login(*user_data.Xinxi_student)
        self.page.enter_project()
        self.page.enter_tools('活动')
        # self.page.join_act()   #6
        self.page.xin_act()  #6s


if __name__ == '__main__':
    unittest.main()